<?php

/**
 * 后台页面
 */
use think\facade\Route;
Route::group('api', function () {

    Route::get('/', 'app\api\controller\Index@index');  //管理员列表

    //菜单
    Route::post('menu/getMenuInfo', 'app\api\controller\system\Menu@getMenuInfo');
    Route::post('menu/getMenuList', 'app\api\controller\system\Menu@getMenuList');
    Route::get('menu/getMenuTreeList', 'app\api\controller\system\Menu@getMenuTreeList');
    Route::post('menu/getMenuTreeList', 'app\api\controller\system\Menu@getMenuTreeList');
    Route::post('menu/createMenu', 'app\api\controller\system\Menu@createMenu');
    Route::post('menu/modifyMenu', 'app\api\controller\system\Menu@modifyMenu');
    Route::post('menu/trashMenu', 'app\api\controller\system\Menu@trashMenu');

})->allowCrossDomain();
